home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / telep010.zip / GENERAL.HP_ / GENERAL.bin
Text File  |  1995-03-13  |  2KB  |  73 lines

  1. // CopyRight Maurizio Maccani 1995
  2. #ifndef _GENERAL
  3. #define _GENERAL
  4. #include <windows.h>
  5. #include <windowsx.h>
  6. #include <stdlib.h>
  7. #include <string.h>
  8. #include "resource.h"
  9. #include "MODEM.h"
  10. #include "db.hpp"
  11. #include "telephon.h"
  12. #define INPUTFILE "teldata.dat"
  13. struct TelepItemStruct {
  14. int defaultAreaCode;
  15. int defaultIntCode;
  16. HWND internLB,areaLB,edit,button;
  17. BOOL areaFromInt;
  18.  int vDim;
  19.  int hDim;
  20.  HFONT newFont;
  21. };
  22. struct EditProc {
  23. BOOL validate;
  24. int key;
  25. BOOL open;
  26. BOOL closed;
  27. BOOL plus;
  28. };
  29. struct Personal {
  30.  char areaC[20];
  31.  char intC[20];
  32.  char countryC[20];
  33.  int iAm;
  34.  BOOL areaHasPrefix;
  35.  char areaPrefix[20];
  36.  };
  37. void Strip(LPSTR);
  38. BOOL GetInternational(LPSTR,LPSTR);
  39. BOOL GetArea(LPSTR,LPSTR);
  40. void GetNumber(LPSTR,LPSTR,BOOL);
  41. BOOL GetExtension(LPSTR,LPSTR);
  42. BOOL IsNumeric(char);
  43. BOOL IsOtherCity(LPSTR);
  44. BOOL IsInternational(LPSTR);
  45. extern          "C" BOOL  FAR PASCAL _export Dial(HWND hwnd, LPSTR telToCall);
  46. void ValidateTelN(HWND hwnd,int wParam);
  47. LONG __export CALLBACK TelephoneProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  48. LONG __export CALLBACK TelMessageProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  49. LONG __export CALLBACK TelephoneEditProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  50. LONG __export CALLBACK TelephoneListBoxProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  51. BOOL __export CALLBACK Area(HWND hDlg, unsigned message, WORD wParam, LONG lParam);
  52. BOOL __export CALLBACK Country(HWND hDlg, unsigned message, WORD wParam, LONG lParam);
  53. extern "C" BOOL FAR PASCAL _export TelephoneParametersDialogProc(HWND hDlg, UINT message, UINT wParam,
  54.                                                                 LONG lParam);
  55. extern "C" BOOL FAR PASCAL __export SettingsDlgProc(HWND hDlg, UINT uMsg,
  56.                                                WPARAM wParam, LPARAM lParam);
  57.  
  58. void CreatePersonal();
  59. BOOL LoadMainList();
  60. LRESULT CreateTTYInfo();
  61.  
  62. #define TEN_SHOWMAIN 7735
  63. #define TEN_SHOWCHILD 7736
  64.  
  65. void DrawUpRect(HDC hdc,RECT rect,int up);
  66. void ShrinkRect(RECT *rect,int amount);
  67.  
  68. #define DRAW_OUT       1
  69. #define DRAW_IN        0
  70. #define DRAW_UNDERLINE 2
  71.  
  72. #endif
  73.